import { ApiProperty } from '@nestjs/swagger'
import { IsOptional } from 'class-validator'
import { Pagenation } from '@/dtos/pagenation.dto'
export class GetUserDto extends Pagenation {
  @ApiProperty({ description: '用户名称', required: false })
  @IsOptional()
  userName: string
  @ApiProperty({ description: '用户手机', required: false })
  @IsOptional()
  userPhone: string
  @ApiProperty({ description: '用户邮箱', required: false })
  @IsOptional()
  userEmail: string
  @ApiProperty({ description: '用户昵称', required: false })
  @IsOptional()
  nickName: string
  @ApiProperty({
    description: '用户性别1:男，2:女',
    enum: [1, 2],
    required: false,
  })
  @IsOptional()
  userGender: string
  @IsOptional()
  @ApiProperty({
    description: '用户状态1:启用，2:禁用',
    enum: [1, 2],
    required: false,
  })
  status: string
}
